package package01.utils;

import java.sql.Timestamp;
import java.text.SimpleDateFormat;

/**
 * 作者: jack
 * 时间: 2020-07-21 10:59
 * 描述: DateUtil : 日期转换
 */
public class DateUtil {

    private static SimpleDateFormat sdf = new SimpleDateFormat("yyyy-MM-dd HH:mm:ss");

    public static String toDateStr(Timestamp timestamp) {
        return sdf.format(timestamp);
    }

}
